package net.xdclass.user.service;

import net.xdclass.user.model.vo.AddressVO;
import net.xdclass.user.request.AddressAddRequest;

import java.util.List;

public interface AddressService {

    /**
     * 根据id查询指定的收货地址
     * @param id
     * @return
     */
    AddressVO selectAddressById(Long id);

    /**
     * 新增收货地址
     * @param address
     * @return
     */
    int addAddress(AddressAddRequest address);

    /**
     * 根据id删除指定收货地址
     * @param id
     * @return
     */
    int deleteAddressById(Long id);

    /**
     * 查询当前用户所有收货地址
     * @return
     */
    List<AddressVO> selectUserAllAddress();


}
